<template>
  <div id="home">
    <el-container>
      <el-header><NavigAtion></NavigAtion></el-header>
      <el-main><router-view /></el-main>
      <el-footer><Footer></Footer></el-footer>
    </el-container>
  </div>
</template>

<script>
// @ is an alias to /src
import Footer from "@/components/Footer.vue";
import NavigAtion from "@/components/Navigation_bars";

export default {
  name: "Home",
  components: {
    Footer,
    NavigAtion
  }
};
</script>

<style lang="less" scoped>
#home {
  min-width: 1190px;
}
.el-header {
    background-color: white !important;
    font-size: 0;
}
.el-header, .el-footer {
  color: #333;
  text-align: center;
  height: auto!important;
  padding: 0px;
}
.el-main {
  color: #333;
  padding: 0px;
  // 计算减去头部和底部的高度，就是中间的高度
  min-height: calc(100vh - 220px)
}
.el-aside {
  color: #333;
  text-align: center;
}
body > .el-container {
  margin-bottom: 40px;
}
</style>
